#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b;

    int amass = a * b;
    while (c = a % b)
    {
        a = b;
        b = c;
    }
    int ans = amass / b;
    cout << ans << endl;
    return 0;
}